<?php
include_once "../../../common.php";
?>
<script>
function pressEnter()
{
  if(event.keyCode == 13){
    $("#goButton").click();
  }
} 
</script>
<table style="width:100%;">
	<tr>
	<td style="color: #FFFFFF;">
		<!-- GOTO -->
		<b>Ga naar:</b><input type="text" style="width:50px;" id="gotoid" />
		<input type="button" id="goButton" value=" Go " onClick="window.location='?id='+document.getElementById('gotoid').value;" />
		
		&nbsp;&nbsp;&nbsp;&nbsp;
		<!-- Filters -->
		<b>Filter op:</b>
		<select id="status" onChange="javascript: updateFilter('status',this.options[this.selectedIndex].value);">
			<option value="">Status</option>
			<?php
			$query = "SELECT * FROM WebshopStatusen ORDER BY SortingOrder";
			$result = $_MySQL->runQuery($query);
			while($row = mysql_fetch_assoc($result))
			{
				?>
				<option value="<?=$row['ID'];?>"><?=$row['Naam'];?></option>
				<?php
			}
			?>
		</select>

		<!-- X van Y -->
		<span id="xvany" style="height:30px; line-height:30px; vertical-align:middle;"></span>
	</td>
	<td style="width:15%; text-align:right;">
		<!-- Navigatie Vorige -->
		<a id="buttonfirst" href="#" onClick="javascript: displayPage(getFirst()); return false;"> |< </a>
		<a id="buttonprevius" href="#" onClick="javascript: displayPage(getPrevius()); return false;"> < </a>
	</td>
	<td style="width:15%; text-align:left;">	
		<!-- Navigatie Volgende -->
		<a id="buttonnext" href="#" onClick="javascript: displayPage(getNext()); return false;"> > </a>
		<a id="buttonlast" href="#" onClick="javascript: displayPage(getLast()); return false;"> >| </a>
	</td>
	</tr>
</table>
<script>

$("#gotoid").keyup(function(event)
{
  if(event.keyCode == 13){
    $("#goButton").click();
  }
});

</script>